import 'lib/function.dart' deferred as func; // 延迟加载

void main() async {
  print("1....");
  await loadFunc();
  print("2....");
}

Future loadFunc() async {
  await func.loadLibrary(); // 加载库
  func.fun1();
  func.sayHello();
}
